home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 June: System Software / Dev.CD Jun 97 SSW.toast / What's New? / Sample Code / Text / NeoTextBox97 / Utilities.h < prev   
Encoding:
C/C++ Source or Header  |  1997-04-23  |  1.4 KB  |  34 lines  |  [TEXT/CWIE]

  1. /*****************************************************************************************
  2.  
  3. Utilities.h - prototypes for utility routines for NTBDemo
  4.  
  5. Written by Bryan K. Ressler (Beaker), 8/30/91
  6.  
  7. updated for the wonderful universe of PowerPC by Pete Gontier (Gurgle), 3/31/97
  8.  
  9. *****************************************************************************************/
  10.  
  11. #ifndef __DIALOGS__
  12. #    include <Dialogs.h>
  13. #endif
  14.  
  15. /** DEFINES *****************************************************************************/
  16. #define kSave        1            /* Save text parameters */
  17. #define kRestore    0            /* Restore text parameters */
  18.  
  19. /** GLOBALS *****************************************************************************/
  20. extern    short        gJustRadio;        /* Currently-set justification radio button */
  21. extern    short        gFontRadio;        /* Currently-set font radio button */
  22.  
  23. /** PUBLIC PROTOTYPES *******************************************************************/
  24.         short    JustToRadio        (short justification);
  25.         short    RadioToJust        (void);
  26.         short    RadioToFont        (void);
  27.         void    SetValue        (DialogPtr theDialog,short itemNum,short value);
  28.         void    GetItemRect        (DialogPtr theDialog,short itemNum,Rect *box);
  29.         void    UserItem        (DialogPtr theDialog, short itemNum, UserItemProcPtr theProc);
  30.         void    InvalItem        (DialogPtr theDialog,short itemNum,short hInset,short vInset);
  31. pascal    void    BoxItem            (WindowPtr theWindow,short itemNum);
  32. pascal    void    GrayBoxItem        (WindowPtr theWindow,short itemNum);
  33.         void    TextParms        (short code);
  34.